home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / appe Windows 2.0 / AppeWin for SC7 / filter.h < prev    next >
Text File  |  1995-06-11  |  1KB  |  39 lines

  1. // File "filter.h" - 
  2.  
  3. #ifndef ____FILTER_HEADER____
  4. #define ____FILTER_HEADER____
  5.  
  6. // * ****************************************************************************** *
  7.  
  8. // Constant offsets into jGNEFilter for inline data
  9. #define kNextFilterOffset        0x02
  10. #define kEventHelperOffset        0x06
  11. #define kEventHelperDataOffset    0x0A
  12.  
  13. // Cleanest Solution for PPC - Stuff Raw 68k into a SystemPtr
  14. #define kGNEFilterHexData "\p600C0000000000000000000000004E56000048E7E0E0207AFFEE2008\
  15. 4A80670E2F3AFFE82F09207AFFDE4E90508F4CDF07074E5E207AFFCC4ED08B4576656E7446696C7465720000"
  16.  
  17. // Declare a Guide for Passing the Filter Helper
  18. typedef void (*FilterHelperProcPtr)(EventRecord *theEvent, Ptr helperData);
  19.  
  20. pascal ProcPtr GetJGNEFilter(void) = { 0x2EB8, 0x029A };
  21. pascal void SetJGNEFilter(ProcPtr) = { 0x21DF, 0x029A };
  22.  
  23. // * ****************************************************************************** *
  24. // * ****************************************************************************** *
  25. // Function Prototypes
  26.  
  27. Ptr InstallEventFilter(FilterHelperProcPtr helperProc, Ptr helperData);
  28. Ptr ReleaseEventFilter(Ptr filterProc);
  29.  
  30. #if GENERATING68K
  31. asm void EventFilter(void);
  32. void EndEventFilter(void);
  33. #endif GENERATING68K
  34.  
  35. void EventFilterHelper(EventRecord *theEvent, Ptr helperData);
  36.  
  37. #endif  ____FILTER_HEADER____
  38.  
  39.